/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package aso.upna.controllers.chains;

import aso.upna.cancion.AbstractCancion;

/**
 *
 * @author triki
 */
public abstract class AbstractChain {

    protected AbstractChain cad;
    private boolean link;

    public AbstractChain()
    {
        link = false;
    }

    public void addChain(AbstractChain c)
    {
        cad = c;
        link = true;
    }

    abstract public void sendToChain(AbstractCancion cancion);

    public AbstractChain getChain()
    {
        return cad;
    }

    public boolean has_link()
    {
        return link;
    }
}
